<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登入</title>
    <link rel="stylesheet" type="text/css" href="${adminAssetsUrl}/css/base.css">
    <link rel="stylesheet" type="text/css" href="${adminAssetsUrl}/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="${adminAssetsUrl}/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="${adminAssetsUrl}/css/common.css">
    <script type="text/javascript" src="${adminAssetsUrl}/js/jquery.min.js"></script>
    <script type="text/javascript" src="${adminAssetsUrl}/js/jquery.easyui.min.js"></script>
    <style>
        .div2 {
            position: absolute;
            top: 50%;
            left: 50%;
            z-index: 100;
        }

    </style>
    <script type="text/javascript">
        $(function () {
            var div = document.getElementById('divId');
            var _mLeft = -(div.clientWidth / 2);
            var _mTop = -(div.clientHeight / 2);
            $(div).css({"margin-left": _mLeft, "margin-top": _mTop});

            $('#loginBtn').click(function () {
                var username = $('#username').val();
                var password = $('#password').val();
                $('#loginForm').submit();
            });
        });
    </script>
</head>
<body>

<div class="div2" id="divId">
    <div class="easyui-panel" title="系统" style="width:400px;padding:30px 70px 20px 70px">
        <form action="${ctx}/admin/common/loginSubmit.do" id="loginForm" method="post" commandName="user">
            <div style="margin-bottom:10px">
                <input class="easyui-textbox" style="width:100%;height:40px;padding:12px" name="username"
                       data-options="prompt:'用户名',iconCls:'icon-man',iconWidth:38" id="username">
            </div>
            <div style="margin-bottom:20px">
                <input class="easyui-textbox" type="password" style="width:100%;height:40px;padding:12px" name="password"
                       data-options="prompt:'密码',iconCls:'icon-lock',iconWidth:38" id="password">
            </div>
            <div style="margin-bottom:20px">
                <input type="checkbox" checked="checked">
                <span>记住我</span>
            </div>
            <div>
                <a href="javascript:void(0)" id="loginBtn" class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
                   style="padding:5px 0px;width:100%;">
                    <span style="font-size:14px;">登入</span>
                </a>
            </div>
        </form>
    </div>
</div>
</body>
</html>